/**
 * 
 */
package sqs.model;

import java.io.Serializable;

/**
 * @author kjleng
 *
 */
public class Option implements Serializable {
	private int optionId;
	private String optionText;
	
	public static final String RATING_OPTION="R";
	public static final String MCQ_OPTION="O";
	public static final String NUMERIC_OPTION="N";
	
	public boolean equals(Option o){
		if(o.getOptionId()==this.getOptionId()){
			return true;
		}
		return false;
	}
	
	public int getOptionId() {
		return optionId;
	}
	public void setOptionId(int optionId) {
		this.optionId = optionId;
	}
	public String getOptionText() {
		return optionText;
	}
	public void setOptionText(String optionText) {
		this.optionText = optionText;
	}
	
	// to be overwritten by subclass
	public void setRating(float rating){
		System.out.println("!!!! WRONG. THIS SHOULD NOT HAPPEN!!!!!!!!!!");
	}
	
	// to be overwritten by subclass
	public float getRating(){
		System.out.println("!!!! WRONG. THIS SHOULD NOT HAPPEN!!!!!!!!!!");
		return 0f;
	}
}
